package com.moshang.blog.core.utils;

import java.util.UUID;

/**
 * @program: blog
 * @description:  生成随机字符串的工具类 uuid
 * @author: xieweiwei
 * @create: 2018-10-18 13:40
 **/
public class UUIDUtils {

    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static void main(String[] args) {
        System.out.println("格式前的UUID ： " + UUID.randomUUID().toString());
        System.out.println("格式化后的UUID ：" + getUUID());
    }
}
